.class Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$d;
.super Ljava/lang/Object;
.source "PictureCompositionActivity.java"

# interfaces
.implements Landroid/view/ViewTreeObserver$OnPreDrawListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;->w()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;


# direct methods
.method constructor <init>(Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$d;->a:Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onPreDraw()Z
    .locals 5

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$d;->a:Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;

    invoke-static {v0}, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;->d(Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;)Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v0

    invoke-virtual {v0, p0}, Landroid/view/ViewTreeObserver;->removeOnPreDrawListener(Landroid/view/ViewTreeObserver$OnPreDrawListener;)V

    .line 2
    :try_start_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$d;->a:Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;

    .line 3
    invoke-static {v0}, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;->d(Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;)Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView;

    move-result-object v0

    invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView;->getLayoutManager()Landroidx/recyclerview/widget/RecyclerView$LayoutManager;

    move-result-object v0

    check-cast v0, Landroidx/recyclerview/widget/LinearLayoutManager;

    const/4 v1, 0x0

    .line 4
    invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/LinearLayoutManager;->findViewByPosition(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 5
    sget v2, Les/x4;->durec_stitch_scissors1:I

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    .line 6
    new-instance v3, Landroid/graphics/Rect;

    invoke-direct {v3}, Landroid/graphics/Rect;-><init>()V

    .line 7
    new-instance v4, Landroid/graphics/Rect;

    invoke-direct {v4}, Landroid/graphics/Rect;-><init>()V

    .line 8
    invoke-virtual {v0, v3}, Landroid/view/View;->getLocalVisibleRect(Landroid/graphics/Rect;)Z

    .line 9
    invoke-virtual {v0, v4}, Landroid/view/View;->getGlobalVisibleRect(Landroid/graphics/Rect;)Z

    .line 10
    invoke-virtual {v0}, Landroid/view/View;->getHeight()I

    move-result v0

    iget v3, v3, Landroid/graphics/Rect;->bottom:I

    sub-int/2addr v0, v3

    invoke-virtual {v2}, Landroid/view/View;->getHeight()I

    move-result v3

    add-int/2addr v0, v3

    .line 11
    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$d;->a:Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;

    invoke-static {v3}, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;->d(Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;)Lcom/esfile/screen/recorder/picture/ui/LongImageRecyclerView;

    move-result-object v3

    invoke-virtual {v3, v1, v0}, Landroidx/recyclerview/widget/RecyclerView;->scrollBy(II)V

    .line 12
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$d;->a:Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;

    new-instance v3, Lcom/esfile/screen/recorder/picture/ui/c;

    iget-object v4, p0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$d;->a:Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;

    invoke-direct {v3, v4}, Lcom/esfile/screen/recorder/picture/ui/c;-><init>(Landroid/content/Context;)V

    invoke-static {v0, v3}, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;->a(Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;Lcom/esfile/screen/recorder/picture/ui/c;)Lcom/esfile/screen/recorder/picture/ui/c;

    .line 13
    new-instance v0, Lcom/esfile/screen/recorder/picture/ui/c$a$a;

    invoke-direct {v0}, Lcom/esfile/screen/recorder/picture/ui/c$a$a;-><init>()V

    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$d;->a:Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;

    sget v4, Les/z4;->durec_stitch_picture_guidance:I

    .line 14
    invoke-virtual {v3, v4}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Lcom/esfile/screen/recorder/picture/ui/c$a$a;->a(Ljava/lang/String;)Lcom/esfile/screen/recorder/picture/ui/c$a$a;

    const/16 v3, 0x30

    .line 15
    invoke-virtual {v0, v3}, Lcom/esfile/screen/recorder/picture/ui/c$a$a;->a(I)Lcom/esfile/screen/recorder/picture/ui/c$a$a;

    .line 16
    invoke-virtual {v0, v2}, Lcom/esfile/screen/recorder/picture/ui/c$a$a;->a(Landroid/view/View;)Lcom/esfile/screen/recorder/picture/ui/c$a$a;

    .line 17
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/ui/c$a$a;->a()Lcom/esfile/screen/recorder/picture/ui/c$a;

    move-result-object v0

    .line 18
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$d;->a:Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;

    invoke-static {v2}, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;->e(Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;)Lcom/esfile/screen/recorder/picture/ui/c;

    move-result-object v2

    invoke-virtual {v2, v0}, Lcom/esfile/screen/recorder/picture/ui/c;->a(Lcom/esfile/screen/recorder/picture/ui/c$a;)V

    .line 19
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$d;->a:Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;

    invoke-static {v0}, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;->e(Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;)Lcom/esfile/screen/recorder/picture/ui/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/ui/c;->b()V

    .line 20
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureCompositionActivity$d;->a:Lcom/esfile/screen/recorder/picture/PictureCompositionActivity;

    invoke-virtual {v0}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Les/s6;->a(Landroid/content/Context;)Les/s6;

    move-result-object v0

    invoke-virtual {v0, v1}, Les/s6;->a(Z)V
    :try_end_0
    .catch Ljava/lang/ClassCastException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 21
    sget-boolean v1, Les/u6;->a:Z

    if-eqz v1, :cond_0

    .line 22
    invoke-virtual {v0}, Ljava/lang/ClassCastException;->printStackTrace()V

    :cond_0
    :goto_0
    const/4 v0, 0x1

    return v0
.end method
